import request from '@/utils/request'
import { AxiosPromise } from 'axios'

export enum Api {
  list = '/ledgerSettleDealer/list',
  paid = '/ledgerSettleDealer/paid',
  export = 'ledgerSettleDealer/export',
}

// 获取列表
export const ledgerSettleDealerList = (data: any): AxiosPromise<any> => {
  return request({
    url: Api.list,
    method: 'post',
    data,
  })
}

export const ledgerSettleDealerPaid = (data: any): AxiosPromise<any[]> => {
  return request({
    url: Api.paid,
    method: 'post',
    data,
  })
}
